package com.psp.bu.controller.res.enumModel;

public enum DemandCategoryEnum {
	QUICKCENTER("quickcenter",1),
	INDUSTRIALDESIGN("industrialdesign",2),
	CONCEPTUALDESIGN("conceptualdesign",3),
	STANDARDCERTIFICATION("standardcertification",4),
	MIDSMALLBATCH("midsmallbatch",5),
	TECHSERVICES("techservices",6),
	PRODUCTMARKETING("productmarketing",7);
	
	private String name;
	private int index;
	
	DemandCategoryEnum(String name, int index){
		 this.name = name;  
         this.index = index;  
	};
	public static DemandCategoryEnum getCate(int index) {  
		for (DemandCategoryEnum c : DemandCategoryEnum.values()) {  
            if (c.getIndex() == index) {  
                return c;  
            }  
        }  
        return null;  
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}  
	

}


	
